Skip to content

fix: correct stale function reference in tracing doc#358

Merged
Haven Xia (HavenXia) merged 6 commits into
agent-substrate:mainfrom
mesutoezdil:fix/tracing-init-reference
Jul 22, 2026
Merged

fix: correct stale function reference in tracing doc#358
Haven Xia (HavenXia) merged 6 commits into
agent-substrate:mainfrom
mesutoezdil:fix/tracing-init-reference

Conversation

@mesutoezdil

@mesutoezdil Mesut Oezdil (mesutoezdil) commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The tracing best practices doc points to cmd/ateapi/ateapi.go:initTracing() as the example, but that file/function does not exist. Servers now call internal/serverboot.InitTracing(), used in cmd/ateapi/main.go.
Verified internal/serverboot.InitTracing exists and is called from cmd/ateapi/main.go:80.

@mesutoezdil
Mesut Oezdil (mesutoezdil) force-pushed the fix/tracing-init-reference branch 2 times, most recently from b16cbe4 to 53138d9 Compare July 14, 2026 18:59
@mesutoezdil

Copy link
Copy Markdown
Contributor Author

Haven Xia (@HavenXia) would you mind taking a look when you get a chance, small doc fix?

@HavenXia Haven Xia (HavenXia) self-assigned this Jul 17, 2026
@HavenXia
Haven Xia (HavenXia) self-requested a review July 17, 2026 17:46
All servers need to initialize an OpenTelemetry exporter and tracer provider. See `cmd/ateapi/ateapi.go:initTracing()` for an example:
All servers need to initialize an OpenTelemetry exporter and tracer provider. See `internal/serverboot.InitTracing()` (used by `cmd/ateapi/main.go`) for an example:

```go

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code block has also been updated, can you update them also?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code block has also been updated, can you update them also?

thx, done!

@HavenXia
Haven Xia (HavenXia) merged commit ac817ba into agent-substrate:main Jul 22, 2026
11 checks passed
@mesutoezdil

Copy link
Copy Markdown
Contributor Author

Haven Xia (@HavenXia) Updated the code block to show the actual serverboot.InitTracing usage from cmd/ateapi/main.go. Could you take another look when you get a chance?

@HavenXia

Copy link
Copy Markdown
Collaborator

Haven Xia (Haven Xia (@HavenXia)) Updated the code block to show the actual serverboot.InitTracing usage from cmd/ateapi/main.go. Could you take another look when you get a chance?

already merged

@mesutoezdil

Copy link
Copy Markdown
Contributor Author

Haven Xia (Haven Xia (Haven Xia (@HavenXia))) Updated the code block to show the actual serverboot.InitTracing usage from cmd/ateapi/main.go. Could you take another look when you get a chance?

already merged

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants